using System;
using ZhCun.DbCore.Entitys;

namespace ZhCun.WebCommon.DBModels
{
	public partial class TSysLoginToken : EntityBase
	{
		private System.String _LoginToken;
		/// <summary>
		/// LoginToken
		/// </summary>
		[Entity(ColumnName = CNLoginToken, IsPrimaryKey = true, IsNotNull = true)]
		public System.String LoginToken
		{
			get { return _LoginToken; }
			set
			{
				_LoginToken = value;
				base.SetFieldChanged(CNLoginToken) ;
			}
		}

		private System.String _RefreshToken;
		/// <summary>
		/// RefreshToken
		/// </summary>
		[Entity(ColumnName = CNRefreshToken)]
		public System.String RefreshToken
		{
			get { return _RefreshToken; }
			set
			{
				_RefreshToken = value;
				base.SetFieldChanged(CNRefreshToken) ;
			}
		}

		private System.String _TokenCode;
		/// <summary>
		/// TokenCode
		/// </summary>
		[Entity(ColumnName = CNTokenCode)]
		public System.String TokenCode
		{
			get { return _TokenCode; }
			set
			{
				_TokenCode = value;
				base.SetFieldChanged(CNTokenCode) ;
			}
		}

		private System.String _LoginUserId;
		/// <summary>
		/// LoginUserId
		/// </summary>
		[Entity(ColumnName = CNLoginUserId)]
		public System.String LoginUserId
		{
			get { return _LoginUserId; }
			set
			{
				_LoginUserId = value;
				base.SetFieldChanged(CNLoginUserId) ;
			}
		}

		private System.String _LoginName;
		/// <summary>
		/// LoginName
		/// </summary>
		[Entity(ColumnName = CNLoginName)]
		public System.String LoginName
		{
			get { return _LoginName; }
			set
			{
				_LoginName = value;
				base.SetFieldChanged(CNLoginName) ;
			}
		}

		private System.String _UserName;
		/// <summary>
		/// UserName
		/// </summary>
		[Entity(ColumnName = CNUserName)]
		public System.String UserName
		{
			get { return _UserName; }
			set
			{
				_UserName = value;
				base.SetFieldChanged(CNUserName) ;
			}
		}

		private System.String _MobileNumber;
		/// <summary>
		/// MobileNumber
		/// </summary>
		[Entity(ColumnName = CNMobileNumber)]
		public System.String MobileNumber
		{
			get { return _MobileNumber; }
			set
			{
				_MobileNumber = value;
				base.SetFieldChanged(CNMobileNumber) ;
			}
		}

		private System.String _RoleId;
		/// <summary>
		/// RoleId
		/// </summary>
		[Entity(ColumnName = CNRoleId)]
		public System.String RoleId
		{
			get { return _RoleId; }
			set
			{
				_RoleId = value;
				base.SetFieldChanged(CNRoleId) ;
			}
		}

		private System.String _RoleName;
		/// <summary>
		/// RoleName
		/// </summary>
		[Entity(ColumnName = CNRoleName)]
		public System.String RoleName
		{
			get { return _RoleName; }
			set
			{
				_RoleName = value;
				base.SetFieldChanged(CNRoleName) ;
			}
		}

		private System.DateTime? _LoginTime;
		/// <summary>
		/// LoginTime
		/// </summary>
		[Entity(ColumnName = CNLoginTime)]
		public System.DateTime? LoginTime
		{
			get { return _LoginTime; }
			set
			{
				_LoginTime = value;
				base.SetFieldChanged(CNLoginTime) ;
			}
		}

		private System.String _LoginClientSN;
		/// <summary>
		/// LoginClientSN
		/// </summary>
		[Entity(ColumnName = CNLoginClientSN)]
		public System.String LoginClientSN
		{
			get { return _LoginClientSN; }
			set
			{
				_LoginClientSN = value;
				base.SetFieldChanged(CNLoginClientSN) ;
			}
		}

		private System.String _LoginHost;
		/// <summary>
		/// LoginHost
		/// </summary>
		[Entity(ColumnName = CNLoginHost)]
		public System.String LoginHost
		{
			get { return _LoginHost; }
			set
			{
				_LoginHost = value;
				base.SetFieldChanged(CNLoginHost) ;
			}
		}

		private System.DateTime _LoginExpiresTime;
		/// <summary>
		/// LoginExpiresTime
		/// </summary>
		[Entity(ColumnName = CNLoginExpiresTime, IsNotNull = true)]
		public System.DateTime LoginExpiresTime
		{
			get { return _LoginExpiresTime; }
			set
			{
				_LoginExpiresTime = value;
				base.SetFieldChanged(CNLoginExpiresTime) ;
			}
		}

		private System.Int32 _LoginExpiresMinute;
		/// <summary>
		/// LoginExpiresMinute
		/// </summary>
		[Entity(ColumnName = CNLoginExpiresMinute, IsNotNull = true)]
		public System.Int32 LoginExpiresMinute
		{
			get { return _LoginExpiresMinute; }
			set
			{
				_LoginExpiresMinute = value;
				base.SetFieldChanged(CNLoginExpiresMinute) ;
			}
		}

		private System.String _LoginMode;
		/// <summary>
		/// LoginMode
		/// </summary>
		[Entity(ColumnName = CNLoginMode)]
		public System.String LoginMode
		{
			get { return _LoginMode; }
			set
			{
				_LoginMode = value;
				base.SetFieldChanged(CNLoginMode) ;
			}
		}

		private System.Boolean _LoginState;
		/// <summary>
		/// LoginState
		/// </summary>
		[Entity(ColumnName = CNLoginState, IsNotNull = true)]
		public System.Boolean LoginState
		{
			get { return _LoginState; }
			set
			{
				_LoginState = value;
				base.SetFieldChanged(CNLoginState) ;
			}
		}

		private System.DateTime? _RequestTime;
		/// <summary>
		/// RequestTime
		/// </summary>
		[Entity(ColumnName = CNRequestTime)]
		public System.DateTime? RequestTime
		{
			get { return _RequestTime; }
			set
			{
				_RequestTime = value;
				base.SetFieldChanged(CNRequestTime) ;
			}
		}

		private System.DateTime? _AddTime;
		/// <summary>
		/// AddTime
		/// </summary>
		[Entity(ColumnName = CNAddTime)]
		public System.DateTime? AddTime
		{
			get { return _AddTime; }
			set
			{
				_AddTime = value;
				base.SetFieldChanged(CNAddTime) ;
			}
		}

		private System.DateTime? _LastTime;
		/// <summary>
		/// LastTime
		/// </summary>
		[Entity(ColumnName = CNLastTime)]
		public System.DateTime? LastTime
		{
			get { return _LastTime; }
			set
			{
				_LastTime = value;
				base.SetFieldChanged(CNLastTime) ;
			}
		}

		#region 字段名的定义
		public const string CNLoginToken = "LoginToken";
		public const string CNRefreshToken = "RefreshToken";
		public const string CNTokenCode = "TokenCode";
		public const string CNLoginUserId = "LoginUserId";
		public const string CNLoginName = "LoginName";
		public const string CNUserName = "UserName";
		public const string CNMobileNumber = "MobileNumber";
		public const string CNRoleId = "RoleId";
		public const string CNRoleName = "RoleName";
		public const string CNLoginTime = "LoginTime";
		public const string CNLoginClientSN = "LoginClientSN";
		public const string CNLoginHost = "LoginHost";
		public const string CNLoginExpiresTime = "LoginExpiresTime";
		public const string CNLoginExpiresMinute = "LoginExpiresMinute";
		public const string CNLoginMode = "LoginMode";
		public const string CNLoginState = "LoginState";
		public const string CNRequestTime = "RequestTime";
		public const string CNAddTime = "AddTime";
		public const string CNLastTime = "LastTime";
		#endregion

	}
}
